package com.diandi.ddsb.service;

import com.diandi.ddsb.bean.Staff;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import static com.diandi.Constant.APPLICATION_NAME;

/**
 * 用户业务接口
 */
@FeignClient(APPLICATION_NAME)
@RequestMapping("statffService")
public interface StaffService {

    /**
     * 用户根据id查询接口
     */
    @RequestMapping("findStaff")
    Staff findStaff(@RequestParam("id") Long id);

    /**
     * 用户根据email查询接口
     *
     */
    @RequestMapping("findByNickname")
    Staff findByNickname(@RequestParam("nickname") String nickname);

}
